package com.easy.easy.dao;

import com.easy.easy.bean.Order;
import com.easy.easy.bean.Orderaddress;
import com.easy.easy.bean.Useraddress;
import com.easy.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderaddressDao {
    int add(@Param("orderaddress") Orderaddress orderaddress);


    int edit(@Param("orderaddress") Orderaddress orderaddress);

    int delete(@Param("orderid") int orderid,@Param("userid") int userid);

    List<Orderaddress> getList(@Param("page") Page page, @Param("text") String text, @Param("id") int userid);

    Orderaddress getOrderById(@Param("orderid") int orderid,@Param("userid") int userid);

    int getCount(@Param("text") String text,@Param("id") int userid);

    Orderaddress getOrder(@Param("order") Orderaddress orderaddress);

    List<Orderaddress> getAddressByUserID(@Param("userid") int userid);
}
